package sjsu.cmpe235;

import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.MediaController;
import android.widget.Toast;
import android.widget.VideoView;

public class WebActivity extends Activity {
	private WebView webview;
	
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.activity_web);
	    
	    // get the parameter value
	    String URL = getIntent().getStringExtra("webURL");
    
	    Log.d("BARCODE", "URL = " + URL);
	    Toast.makeText(getBaseContext(), "URL=" + URL,Toast.LENGTH_SHORT).show();
	    
	    // load the web site in the web view
	    webview = (WebView) findViewById(R.id.web_view);
	    webview.setWebViewClient(new WebViewClient());
        webview.loadUrl(URL);
	}

}
